package com.qf.micrograss.like.controller;

import com.qf.common.core.common.R;
import com.qf.micrograss.like.service.LikeService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * --- 缘分让我们相遇乱世以外 ---
 *
 * @author SJY
 * 2025/1/6
 */
@RestController
@RequestMapping("/article/like")
public class LikeController {
    @Resource
    private LikeService likeService;

    @GetMapping()
    public R like(Integer articleId) {
        likeService.like2(articleId);
        return R.ok();
    }
}
